const border = require('../tw-lib-base/border/props')

module.exports = {
  navs: {
    type: Array,
    default () {
      return [
        {
          label: '子菜单分类',
          children: [
            {
              label: '子菜单子菜单子菜单子菜单子菜单子菜单子菜单子菜单子菜单',
              href: './ddd'
            },
            {
              label: '子菜单',
              href: './ddd'
            },
            {
              label: '子菜单',
              href: './ddd'
            },
            {
              label: '子菜单',
              href: './ddd'
            },
            {
              label: '子菜单',
              href: './ddd'
            },
            {
              label: '子菜单',
              href: './ddd'
            },
            {
              label: '子菜单',
              href: './ddd'
            },
            {
              label: '子菜单',
              href: './ddd'
            },
            {
              label: '子菜单',
              href: './ddd'
            },
            {
              label: '子菜单',
              href: './ddd'
            },
            {
              label: '子菜单',
              href: './ddd'
            },
            {
              label: '子菜单',
              href: './ddd'
            },
            {
              label: '子菜单',
              href: './ddd'
            },
            {
              label: '子菜单',
              href: './ddd'
            },
            {
              label: '子菜单',
              href: './ddd'
            }
          ]
        }, {
          label: '子菜单分类',
          children: [
            {
              label: '子菜单',
              href: './ddd'
            },
            {
              label: '子菜单',
              href: './ddd'
            }
          ]
        },
        {
          label: '子菜单分类',
          children: [
            {
              label: '子菜单',
              href: './demo'
            },
            {
              label: '子菜单',
              href: './ddd'
            }
          ]
        }
      ]
    },
    name: '菜单列表',
    filedType: 'api'
  },

  width: {
    type: String,
    default: '80px',
    name: '菜单项宽度',
    filedType: 'string'
  },

  background: {
    type: String,
    default: '#f7f8fa',
    name: '菜单项背景色',
    filedType: 'color'
  },
  navBorder: {
    type: String,
    default: '1px solid #ccc',
    name: '菜单项边框',
    filedType: 'string'
  },
  navBorderRadius: {
    type: String,
    default: '15px',
    name: '菜单项圆角',
    filedType: 'string'
  },
  marginLeft: {
    type: String,
    default: '10px',
    name: '菜单项左右间距',
    filedType: 'string'
  },
  marginTop: {
    type: String,
    default: '10px',
    name: '菜单项上下间距',
    filedType: 'string'
  },

  navColor: {
    type: String,
    default: '#323233',
    name: '菜单字体颜色',
    filedType: 'color'
  },
  navFontSize: {
    type: String,
    default: '14px',
    name: '菜单字体大小',
    filedType: 'string'
  },

  padding: {
    type: String,
    default: '5px 15px',
    name: '字体内边距',
    filedType: 'string'
  },

  lineHeight: {
    type: String,
    default: '20px',
    name: '字体行高',
    filedType: 'string'
  },

  titleColor: {
    type: String,
    default: '#333',
    name: '菜单分类颜色',
    filedType: 'color'
  },
  titleFontSize: {
    type: String,
    default: '16px',
    name: '菜单分类字体',
    filedType: 'string'
  },
  titleLineHeight: {
    type: String,
    default: '2',
    name: '菜单分类行高',
    filedType: 'string'
  },
  titleFontWeight: {
    type: String,
    default: '600',
    name: '菜单分类粗细',
    filedType: 'string'
  },
  listMarginTop: {
    type: String,
    default: '15px',
    name: '菜单分类间距',
    filedType: 'string'
  },
  poniterWidth: {
    type: String,
    default: '6px',
    name: '分类点大小',
    filedType: 'string'
  },
  poniterColor: {
    type: String,
    default: 'green',
    name: '分类点颜色',
    filedType: 'string'
  },

  useAccred: {
    type: Boolean,
    default: false,
    name: '链接自动验证',
    filedType: 'switch'
  },

  useClickfn: {
    type: Boolean,
    default: false,
    name: '使用自定义函数',
    filedType: 'switch'
  },
  clickFn: {
    type: Function,
    default: '',
    name: '单击回调函数',
    nameTip: '第一个参数为组件的文本对象',
    placeholder: 'function handler(link) {\n  \n}',
    filedType: 'function'
  },

  ...border
}
